﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AIY
{
    /// <summary>
    /// 走访记录表
    /// </summary>
    public class Interview
    {
        public Interview()
        {
            this.Id = Guid.NewGuid();
        }
        /// <summary>
        /// 数据唯一标识符
        /// </summary>
        [Key]
        [Required]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid Id { get; set; }
        /// <summary>
        /// 走访干部
        /// </summary>
        [Required]
        [StringLength(20)]
        public string? Visitingofficials { get; set; }
        /// <summary>
        /// 是否走访
        /// </summary>
        /// [Required]
        public bool Whethertovisitornot { get; set; }
        /// <summary>
        /// 联系方式
        /// </summary>
        [Required]
        [StringLength(20)]
        public int contactinformation { get; set; }
        /// <summary>
        /// 从业情况
        /// </summary>
        [Required]
        [StringLength(20)]
        public string? Employmentsituation { get; set; }
        /// <summary>
        /// 走访时间
        /// </summary>
        [Required]
        public DateTime Visittime { get; set; }
        /// <summary>
        /// 人数
        /// </summary>
        [Required]
        [StringLength(10)]
        public int Numberofpeople { get; set; }
        /// <summary>
        /// 健康状态
        /// </summary>
        [Required]
        public bool healthstatus { get; set; }
        /// <summary>
        /// 年收入
        /// </summary>
        [Required]
        public int annualincome { get; set; }
    }
}
